Recon Command Line

Not applicable

Two quick questions here

  1. Does anyone know the terminal command to force recon to run?

And

  1. Is their a document that has a list of CLI Commands for Recon?

Thanks
-- "USA Today has come out with a new survey: Apparently three out of four people make up 75 percent of the population." ~David Letterman
-- Lance L. Lennon
District Technology Director
Eagle Grove Community School District
515-448-4749

5 REPLIES 5

jarednichols
Honored Contributor

"Jamf recon"

If you do a "jamf help" at the terminal it'll list out all the commands.

j
-- Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

noah_swanson
New Contributor

It should just be "jamf recon" isn't it? This one doesn't require sudo, but jamf manage does.

Hope this helps.
--Noah

tlarkin
Honored Contributor

I have put in a feature request for actual manual pages for the Jamf CLI binaries, but they only have help pages

$ jamf help recon

Usage: jamf recon

-username The username for a valid account in the JSS to run Recon with

-password The password for a the valid account in the JSS

-passhash A hashed copy of the password for the account in the JSS

-saveFormTo Save the contents of the HTTP form to a file.

The following options determine how the inventory is gathered. Normally, this information will be automtically received from the JSS's inventory preferences:

-skipApps Do not look for applications

-appDetails Do gather detailed information on applications

-gatherCLA Gather information on UNIX Executables

-skipFonts Do not look for fonts

-skipPlugins Do not look for plugins

-addAppPath Add a custom path to look for Applications

-addFontPath Add a custom path to look for Fonts

-addPluginPath Add a custom path to look for Plugins

-swu Include Software Updates in the receipts

-sizes Calculate the size of User Home Directories for receipts

The following options allow you to specify inventory information for the computer:

-assetTag The Asset Tag of the computer

-endUsername The username of the primary user

-realname The Real Name of the primary user

-email The email address of the primary user

-position The Position (Job Title) of the primary user

-building The text representation of a Building in the JSS

-department The text representation of a Department in the JSS

-phone The Phone number of the primary user

-room The Room that the computer is in

-ldapServerID The JSS ID of the LDAP Server that the user belongs to

-userID The User ID of the account in the LDAP Server

The following options allow you to make the computer "managed" by the JSS:

-sshUsername A username that Casper will use to connect to the computer over SSH

-sshPassword A password that Casper will use to connect to the computer over SSH

-sshPasshash A hashed copy of a password that Casper will use to connect to the computer over SSH

The following options allow you to specify the default management information for the computer. This information will be overridden by any existing Network Segments:

-defaultFileServerID The ID of the File Server that the computer's Default File Server

-defaultNetBootServerID The ID of the File Server that the computer's Default NetBoot Server

-defaultSoftwareUpdateServerID The ID of the File Server that the computer's Software Update Server

antoinekinch
New Contributor III

Here are the updated commands.

$ sudo jamf help recon

Usage: jamf recon

-saveFormTo Saves the contents of the HTTP form to a file

The following options allow you to specify inventory information for the computer:

-assetTag The asset tag of the computer

-endUsername The user name of the primary user

-realname The real name of the primary user

-email The email address of the primary user

-position The position (job title) of the primary user

-building The text representation of a building in the JSS

-department The text representation of a department in the JSS

-phone The phone number of the primary user

-room The room that the computer is in

-ldapServerID The JSS ID of the LDAP server to which the primary user belongs

-userID The user ID of the primary user's account in the LDAP server.
The following options allow you to update the computer's management account information in the JSS:

-sshUsername A username that is used to connect to the computer over SSH.

-sshPassword A password that is used to connect to the computer over SSH.

-sshPasshash A hashed copy of a password that is used to connect to the computer over SSH

kerouak
Valued Contributor

So, am I corrct in running something like:

Sudo jamf recon -department -saveFileTo 'path to filename'

Does it create the file or do I create a blank, or, do I specify a file at all??

If not, where does the saved file reside?

I'd like to collect the department detail and set the loginwindow text for our departments...

TIA