Switches, Hubs, and Modems
1748169 Members
4224 Online
108758 Solutions
New Discussion юеВ

Re: what is that ? TFTP_MODE=2

 
SOLVED
Go to solution
Tevfik Uret
Occasional Contributor

what is that ? TFTP_MODE=2

hi,
i have problem with downloading switch configuration to my pc via "tftp get" command.
i can only sucess with some of.
Ther is an extra parameter in some switches's configuration.
-> TFTP_MODE=2 parameter
if this parameter is not included, i could not get configuration of switch via "tftp get" command.

Can you help me how can i solve this problem ?

IP (
TFTP_MODE=2
TIMEP=1
IP_ADDR=192.168.1.152


3 REPLIES 3
Arne Kunisch
Advisor
Solution

Re: what is that ? TFTP_MODE=2

Hi,

which switch (vendor, model) are you running on your site? Sounds a little bit like cisco...

Do you know the tftp commands to establish a connection?
Look here:
http://www.multinet.process.com/ftp/docs/html/user_guide/AppD.htm

Greets
Arne
Tevfik Uret
Occasional Contributor

Re: what is that ? TFTP_MODE=2

my switch's models are here;

HP8000M, HP4000M and HP4104, HP4108

i found the MIB OID;
hpSwitchIpTftpMode OBJECT-TYPE
-- 1.3.6.1.2.1.1.7.11.12.7.1.5.6.0
-- iso(1). org(3). dod(6). internet(1). mgmt(2). mib-2(1). system(1). netElement(7). hpEtherSwitch(11). hpSwitch(12). hpConfig(7). hpSwitchConfig(1). hpSwitchIpConfig(5). hpSwitchIpTftpMode(6). 0
SYNTAX INTEGER {
secure (1),
unsecure (2)
}

ACCESS read-write
DESCRIPTION
"The operational mode of the Tftp protocol."

i tried this but it did not work.
how can i change this mode ?
Tevfik Uret
Occasional Contributor

Re: what is that ? TFTP_MODE=2

hi again,
i solved my problem.
i wrote a php code, i allocated the tftp mode via $tftpmode and i changed this mode to unsecure via $change, and then i could get download all switchs config via tftp get command from dos prompt.
thank you al.


$tftpmode = snmpget("$switch","public",".1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0");
$change = snmpset("$switch","public",".1.3.6.1.4.1.11.2.14.11.5.1.7.1.5.6.0","i","2");