kemaren baru buat batch untuk nge cek SNMP ke devices2 yang list nya banyak banget. karena server nya di windows, dan karena bisa nya batch. jadi buat nya di batch deh.
buat list devices dan SNMP RO nya jadi 1 file di pisahin ";" atau tanda yang lain.
contoh:
router_A;public1
router_B;public2
simpan list nya pake nama list.txt (atau yg lain)
abis itu buat bat file nya de
contoh: snmpcek.bat
isinya itu perulangan for syntax nya macam di bawah:
for /f "eol=; tokens=1,2 delims=; " %i in (list.txt) do snmpwalk -c %j %i system.sysName >>result.txt
nanti dia liat 1 baris 1baris sequential di cek hasilnya di taruh di result.txt.
There are severals ways to mount samba share folders into OSMC. the first step is to turn on the SSH Services in your OSMC go to setting OSMC and choose services by default OSMC SSH will use osmc as its default user and osmc as its default password. second step is to share the folder(s) you want to share to osmc to do this just do a share configuration in windows, there are many links to provide this tutorial. third step is to mount the shares folder(s) to the OSMC. forth step is to make sure that the cifs-util module are loaded to the osmc fifth step is to mount them you can use the mount command or you can mapped the samba folders through fstab to do manual mount type in: mount -t cifs -o username=Administrator,password=Password // / /mnt/ or you can edit the /etc/fstab //source_ip/share_folder /target_directory cifs username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 That's it but when osmc rebooted, you might want to ...
Comments