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.
prerequisites package: - gettext - libpanel-applet2-dev - libgnomeui-dev - gnome-network-admin command #sudo apt-get install gettext libpanel-applet2-dev libgnomeui-dev gnome-network-admin donlod g2ipmsg from here i'm using the g2ipmsg-0.9.6 source package and ubuntu intrepid 8.10 after that untar the package with: #tar zxvf g2ipmsg-0.9.6.tar.gz #cd g2ipmsg-0.9.6 # ./configure --prefix=/usr --sysconfdir=/etc --enable-systray \ --with-ext-charcode=CP932 --disable-doxygen-doc Check if the configure command is working with no errors and after there are no errors go to the next step which is: #make Check if this has errors too hopefully the prerequisites are helping, and after a sucessfull 'make' the next step is: #make install after this u will be able to check if the installation successfull or not simply just try to find an icon on your desktop or list this file 'g2ipmsg' in /usr/bin folder. after u are able to find the file try to run in with: $sudo /usr/...
Comments