Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

NAM 5.1 REST with curl

Hello,

I am trying to get data from NAM by REST with curl but without success:

Host:~ $curl http://nam1.domain.com/auth/login.php?api=true

domain=http://nam1.domain.com:80/

nonce=00b4cdbcd0b8951fdb20e915313d3306

pkey=32f6a3355abf29f7

sessid=5bbcb1eefd845fa3f05699e4ad06c8e6

Host:~ $md5 -s http://nam1.domain.com:80/00b4cdbcd0b8951fdb20e915313d3306userpassword

MD5 ("http://nam1.domain.com:80/00b4cdbcd0b8951fdb20e915313d3306userpassword") = fac71e36a454bdc3981eacfb84be4c25

Host:~ $curl --cookie "sessid=5bbcb1eefd845fa3f05699e4ad06c8e6" curl http://nam1.domain.com/auth/authenicate.php?sessid=5bbcb1eefd845fa3f05699e4ad06c8e6&username=user&pwdigest=fac71e36a454bdc3981eacfb84be4c25&pkey=&encode_pq=

Host:~ $curl --cookie "sessid=5bbcb1eefd845fa3f05699e4ad06c8e6" http://nam1.domain.com/monitor/art/artRptExport.php?source=ALL+SPAN

Not authorized

What I do wrong?

Everyone's tags (4)
155
Views
0
Helpful
0
Replies
CreatePlease to create content