Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
kallbrandt
Contributor II

Reference check in cli - Is it possible?

Is there an easy (preferrably, but anything goes..) way to cross-check any references to other items in the cli?

I just realised I don't know any way to do this...

Is it even possible?

Grep doesn' count...

:)

Richie

NSE7

Richie NSE7
1 Solution
emnoc
Esteemed Contributor III

yes

 

diag system checkused is a good thing to know.

 

http://socpuppet.blogspot.com/2014/10/a-few-examples-of-how-to-do-dependency.html

 

This is basically what the webGUI does. You ca check most object via he cli 

 

examples

 

diag sys checkused firewall.adress.name <the exact name >

diag sys checkused firewall.addrgrp.name <the exact name>

diag sys checkused firewall.service.group.name  msql

diag sys checkused firewall.vip.name < the exactname>

diag sys checkused firewall.service.custom.name < theexact name>

diag sys  checkused firewall.policy.id 

diag sys checkusd system.interface.name <interface exact name >

 

 

 

PCNSE 

NSE 

StrongSwan  

View solution in original post

PCNSE NSE StrongSwan
5 REPLIES 5
emnoc
Esteemed Contributor III

yes

 

diag system checkused is a good thing to know.

 

http://socpuppet.blogspot.com/2014/10/a-few-examples-of-how-to-do-dependency.html

 

This is basically what the webGUI does. You ca check most object via he cli 

 

examples

 

diag sys checkused firewall.adress.name <the exact name >

diag sys checkused firewall.addrgrp.name <the exact name>

diag sys checkused firewall.service.group.name  msql

diag sys checkused firewall.vip.name < the exactname>

diag sys checkused firewall.service.custom.name < theexact name>

diag sys  checkused firewall.policy.id 

diag sys checkusd system.interface.name <interface exact name >

 

 

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
kallbrandt

Cool, thanks!

Richie

NSE7

Richie NSE7
emnoc
Esteemed Contributor III

 

A few more cool ones;

 

 

( vpn users and ldap )

 

 

diag sys checkused  user.local.name theusernamehere

diag sys checkused user.ldap.name usernamehere

 

( interface in a vdom )

 

diag sys checkused  system.vdom.name  <vdomname>

 

( vpn interface )

 

dia sys checkused  vpn.ipsec.phase1-interface.name interfacename

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
poundy

Sorry for 2-year-old thread resurrection, but is there a version dependency here?  FG100E, running v6.0.4 build0231 (GA), and diag sys doesn't have a "checkused" ?

poundy

sussed it out...

diagnose sys cmdb refcnt show firewall.vip.name

(for example)

 

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors