cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
813
Views
0
Helpful
2
Replies

CIFS Script

james.robinson
Level 1
Level 1

Here are the first lines of output from a Cisco script that finds files in the cifs folder:

KQPGXTF#script execute cifsdir-new.sh

Directory: drwxrwxrwx 4 admin root 4096 Dec 30 17:34 /obj1/data/cifs/

ls: drwxrwxrwx: No such file or directory

ls: 4: No such file or directory

ls: admin: No such file or directory

ls: root: No such file or directory

ls: 4096: No such file or directory

ls: Dec: No such file or directory

ls: 30: No such file or directory

ls: 17:34: No such file or directory

/obj1/data/cifs/:

total 16

drwxrwxrwx    4 admin    root         4096 Dec 30 17:34 .

drwxrwxrwx    4 admin    root         4096 Dec 29 16:55 ..

drwxrwxrwx    3 admin    root         4096 Dec 30 17:34 eagnmnsg55a.usps.gov

drwxrwxrwx    3 admin    root         4096 Dec 29 16:55 rlghncsxd28.devsub.dev.v

I am unable to drill down manually using cd or ls commands from the local1 directory.    Are the directories above hidden?

2 Replies 2

ahskhan
Cisco Employee
Cisco Employee

Hello,

  You can use script in below format.

script execute cifsdir-new.sh eagnmnsg55a.usps.gov

This will show you the content on this folder. you can then drill down like

script execute cifsdir-new.sh eagnmnsg55a.usps.gov/folder1/folder2

Hope this helps

Ahsan

Yes, it helps a lot. Thanks very much.

Jim Robinson

Verizon Business

Government Enterprise NOC (GENOC)

Review Cisco Networking for a $25 gift card